home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / utils / console / freetty.lsm < prev    next >
Encoding:
Linux Software Map entry  |  1996-11-16  |  1.5 KB  |  33 lines

  1. Begin2
  2. Title        = freetty
  3. Version      = 1.0
  4. Desc1        = Finds the virtual console of all processes in /proc
  5. Desc2        = Outputs either a list of all free consoles(freetty -a)
  6. Desc3        = or just the one with the lowest number(just freetty).
  7. Desc4        = This is a useful compliment to 'doshell' and 'doprog'
  8. Desc5        = to e.g. start a program on the next available console.
  9. Author       = Charles Blake
  10. AuthorEmail  = chuckb@alice.wonderland.caltech.edu
  11. Maintainer   = Charles Blake
  12. MaintEmail   = chuckb@alice.wonderland.caltech.edu
  13. Site1        = sunsite.unc.edu
  14. Path1        = /pub/Linux/system/utils
  15. File1        = freetty.c.gz
  16. FileSize1    = 1.5K
  17. Required1    = Linux 1.0 format '/proc' filesystem.  Not tested on kernel versions 
  18. Required2    = prior to 1.0, but will work as long as the 'tty' is the 7th  field of
  19. Required3    = 'cat /proc/PID/stat'. For small binary: gcc -s -N -o freetty freetty.c
  20. Required4    = gzip (to uncompress file!), gcc (to compile program!)
  21. CopyPolicy1  = Not for sale.  Distribute freely.
  22. Keywords     = available free virtual console tty doshell doprog /proc filesystem
  23. Comment1     = You might want to use this as an example of the proper way to parse
  24. Comment2     = /proc/PID/stat.  It is a little tricky if you want to allow for the
  25. Comment3     = most general possible basename argv[0] in /proc/PID/cmdline.
  26. Comment4     = (i.e. commands with word separators according to fscanf).
  27. RelFiles1    = none
  28. Entered      = 04APR94
  29. EnteredBy    = Charles Blake
  30. CheckedEmail = chuckb@alice.wonderland.caltech.edu
  31. End
  32.  
  33.